package com.flmes.base.service;

import com.flmes.base.base.model.UserToken;
import com.flmes.base.model.domain.User;

/**
 * @Author: flmes
 * @Date: 2024/10/8 20:34
 */
public interface AuthService {

    /**
     * 生成token
     * @param user
     * @return
     */
    String getToken(User user);

    /**
     * 从token获取用户信息
     * @param token
     * @return
     */
    UserToken getUserInfoByToken(String token);

}
